package com.sgzn.sgpay.model.request;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

/**
 * 权限新增请求
 * @author zhongzhongyong
 * @version Id: SgsPrivAddRequest.java, v 0.1 2018/5/1 13:04 zhongzhongyong Exp $$
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString(callSuper = true)
public class SgsPrivAddRequest extends SgsBaseRequest{

    /**
     * 权限名称
     */
    @Length(max = 32)
    @NotBlank(message = "权限名称不能为空")
    private  String privName;

    /**
     * url地址
     */
    @Length(max = 256)
    @NotBlank(message = "url地址不能为空")
    private String url;

}
